package com.unionpay.mpds.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import com.unionpay.mpds.dao.RoleDao;
import com.unionpay.mpds.model.Role;
import com.unionpay.mpds.service.RoleService;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class RoleServiceImpl extends BaseServiceImpl implements RoleService {
	
	@Autowired
	private RoleDao roleDao;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public Role get(String id) {
		return roleDao.get(id);
	}
	
	public List<Role> getAll() {
		return roleDao.findAll();
	}
	
	public List<Role> findByParam(int size, Map<String, Object> params) {
		return roleDao.findListByParamMap(size, params);
	}
	
	public Pager<Role> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	roleDao.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(Role entity) {
		roleDao.save(entity);
	}
	
	public void update(Role entity) {
		roleDao.update(entity);
	}
	
	public void delete(String id) {
		roleDao.delete(id);
	}
	
}

